﻿namespace AnyOffice.Model
{
    using System;

    public class VehicleData
    {
        protected object _buyDate;
        protected object _driver;
        protected object _engineNum;
        protected object _model;
        protected string _number = string.Empty;
        protected object _photo;
        protected object _price;
        protected object _remark;
        protected string _status = string.Empty;
        protected string _type = string.Empty;
        protected int _vehicleId = -1;

        public DateTime BuyDate
        {
            get
            {
                return (DateTime) this._buyDate;
            }
            set
            {
                this._buyDate = value;
            }
        }

        public bool BuyDateIsNull
        {
            get
            {
                return (this._buyDate == null);
            }
            set
            {
                if (value)
                {
                    this._buyDate = null;
                }
            }
        }

        public string Driver
        {
            get
            {
                return (string) this._driver;
            }
            set
            {
                this._driver = value;
            }
        }

        public bool DriverIsNull
        {
            get
            {
                return (this._driver == null);
            }
            set
            {
                if (value)
                {
                    this._driver = null;
                }
            }
        }

        public string EngineNum
        {
            get
            {
                return (string) this._engineNum;
            }
            set
            {
                this._engineNum = value;
            }
        }

        public bool EngineNumIsNull
        {
            get
            {
                return (this._engineNum == null);
            }
            set
            {
                if (value)
                {
                    this._engineNum = null;
                }
            }
        }

        public string Model
        {
            get
            {
                return (string) this._model;
            }
            set
            {
                this._model = value;
            }
        }

        public bool ModelIsNull
        {
            get
            {
                return (this._model == null);
            }
            set
            {
                if (value)
                {
                    this._model = null;
                }
            }
        }

        public string Number
        {
            get
            {
                return this._number;
            }
            set
            {
                this._number = value;
            }
        }

        public byte[] Photo
        {
            get
            {
                return (byte[]) this._photo;
            }
            set
            {
                this._photo = value;
            }
        }

        public bool PhotoIsNull
        {
            get
            {
                return (this._photo == null);
            }
            set
            {
                if (value)
                {
                    this._photo = null;
                }
            }
        }

        public string Price
        {
            get
            {
                return (string) this._price;
            }
            set
            {
                this._price = value;
            }
        }

        public bool PriceIsNull
        {
            get
            {
                return (this._price == null);
            }
            set
            {
                if (value)
                {
                    this._price = null;
                }
            }
        }

        public string Remark
        {
            get
            {
                return (string) this._remark;
            }
            set
            {
                this._remark = value;
            }
        }

        public bool RemarkIsNull
        {
            get
            {
                return (this._remark == null);
            }
            set
            {
                if (value)
                {
                    this._remark = null;
                }
            }
        }

        public string Status
        {
            get
            {
                return this._status;
            }
            set
            {
                this._status = value;
            }
        }

        public string Type
        {
            get
            {
                return this._type;
            }
            set
            {
                this._type = value;
            }
        }

        public int VehicleId
        {
            get
            {
                return this._vehicleId;
            }
            set
            {
                this._vehicleId = value;
            }
        }
    }
}

